<template>
  <div class="homepage">
    <header class="header">
      <div class="container">
        <div class="logo" style="display: flex; flex-direction: row; justify-content: center; align-items: center;">
          <img src="/vite.svg" alt="Logo" class="logo" />
          <div style="padding-left: 10px;font-size: 2rem; font-weight: bold;">可玩</div>
        </div>
        <nav class="nav">
          <a href="#features">服务介绍</a>
          <a href="#trust">用户口碑</a>
          <a href="#cta">立即预约</a>
        </nav>
      </div>
    </header>
    <section class="hero">
      <div class="container">
        <h1>成为更强的玩家，尽在专业游戏教练平台</h1>
        <p>可玩——为玩家量身打造的游戏陪练与技能提升平台，汇聚顶尖教练，助你轻松上分、突破自我！</p>
        <a href="#cta" class="cta-btn">预约教练</a>
      </div>
    </section>
    <section class="features" id="features">
      <div class="container">
        <h2>核心服务</h2>
        <div class="feature-list">
          <div class="feature-item">
            <h3>专业陪练</h3>
            <p>覆盖主流热门游戏，1对1定制化陪练，针对性提升操作与意识。</p>
          </div>
          <div class="feature-item">
            <h3>技能教学</h3>
            <p>系统化课程，涵盖基础到高阶，助你掌握核心技巧与战术。</p>
          </div>
          <div class="feature-item">
            <h3>名师团队</h3>
            <p>职业选手、国服大神、认证教练，实力保障，口碑信赖。</p>
          </div>
        </div>
      </div>
    </section>
    <section class="trust" id="trust">
      <div class="container">
        <h2>用户口碑</h2>
        <div class="trust-list">
          <div class="trust-item">
            <strong>50万+</strong>
            <span>累计服务玩家</span>
          </div>
          <div class="trust-item">
            <strong>98.9%</strong>
            <span>五星好评率</span>
          </div>
          <div class="trust-item">
            <strong>7x24h</strong>
            <span>全天候客服支持</span>
          </div>
        </div>
      </div>
    </section>
    <section class="cta" id="cta">
      <div class="container">
        <h2>立即预约专属游戏教练</h2>
        <a href="#" class="cta-btn">开启高效上分之旅</a>
      </div>
    </section>
    <footer class="footer">
      <div class="container">
        <span>© 2024 GameCoach. 保留所有权利.</span>
      </div>
    </footer>
  </div>
</template>

<style scoped>
.homepage {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  color: #222;
  min-height: 100vh;
}
.header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 40px;
}
.nav a {
  margin-left: 2rem;
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover {
  color: #4338ca;
}
.hero {
  background: linear-gradient(120deg, #6366f1 0%, #a5b4fc 100%);
  color: #fff;
  padding: 4rem 0 3rem 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #6366f1;
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
  transition: background 0.2s, color 0.2s;
}
.cta-btn:hover {
  background: #6366f1;
  color: #fff;
}
.features {
  padding: 3rem 0 2rem 0;
  background: #f1f5f9;
}
.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.feature-list {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.feature-item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(99,102,241,0.06);
  padding: 2rem 1.5rem;
  width: 260px;
  text-align: center;
}
.feature-item h3 {
  color: #6366f1;
  margin-bottom: 0.7rem;
}
.trust {
  padding: 3rem 0 2rem 0;
  background: #fff;
}
.trust h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.trust-list {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  background: #f1f5f9;
  border-radius: 1rem;
  padding: 1.5rem 2.5rem;
  text-align: center;
  min-width: 160px;
}
.trust-item strong {
  font-size: 2rem;
  color: #6366f1;
  display: block;
}
.trust-item span {
  color: #555;
  font-size: 1rem;
}
.cta {
  padding: 3rem 0 2rem 0;
  background: linear-gradient(120deg, #6366f1 0%, #a5b4fc 100%);
  color: #fff;
  text-align: center;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 1.2rem 0;
  text-align: center;
  color: #888;
  font-size: 0.95rem;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 900px) {
  .feature-list, .trust-list {
    flex-direction: column;
    align-items: center;
  }
}
</style>
